package com.zhuhjay.eduservice.service;

import com.zhuhjay.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuhjay.eduservice.entity.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author ZhuHJay
 * @since 2022-09-06
 */
public interface EduChapterService extends IService<EduChapter> {
    /**
     * 根据课程id获取章节信息
     * @param courseId
     * @return
     */
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    /**
     * 果章节下有小节，不让删除
     * @param chapterId
     */
    void removeIfNotVideo(String chapterId);
}
